package com.zsqx.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TStudentCourse entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_student_course", schema = "dbo", catalog = "test")
public class TStudentCourse implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer studentId;
	private Integer courseId;
	private Date createtime;

	// Constructors

	/** default constructor */
	public TStudentCourse() {
	}

	/** full constructor */
	public TStudentCourse(Integer studentId, Integer courseId,
			Date createtime) {
		this.studentId = studentId;
		this.courseId = courseId;
		this.createtime = createtime;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "student_id")
	public Integer getStudentId() {
		return this.studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}

	@Column(name = "course_id")
	public Integer getCourseId() {
		return this.courseId;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}

	@Column(name = "createtime", length = 23)
	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

}